<?php
include_once getenv('DOCUMENT_ROOT')."/capcliente/VOB/VOBFactory.php";
include_once getenv('DOCUMENT_ROOT')."/capcliente/ACTION/ACTFactory.php";
include_once getenv('DOCUMENT_ROOT')."/capcliente/VIEW/template/Template.php";
//session_start();

$layout = Template::getInstancia();
$layout->getDOC();
$ACTf = new ACTFactory();
$VOBf = new VOBFactory();

$objActProduto = $ACTf->getProdutoAction();
$arrayProdutos = $objActProduto->listar();

?>

           
            <h1>Cadastro de Cliente</h1>
            <table>
                <tr>
                    <td>Nome:</td>
                    <td><input size="80"></td>
                </tr>
                <tr>
                    <td>Telefone:</td>
                    <td><input size="80"></td>
                </tr>
                 <tr>
                    <td>Email:</td>
                    <td><input size="80"></td>
                </tr>
                <tr>
                    <td><label for="ide_produto">Produto de Interesse:</label></td>
                    <td >
                        <select size="1" name="ide_produto" id="ide_produto">
                            <option selected="selected" value="">selecione</option>
                            <?php foreach($arrayProdutos as $p):  ?>
                                       <option value="<?php echo $p->getId(); ?>"><?php echo $p->getNome(); ?></option>
                            <?php endforeach  ?>
                        </select>
                    </td>
                 </tr>
            </table>
            